﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Scanner
    {
        private string Token;

        public string GetToken(string source)
        {
            string temp = "";

            for (int i = 0; i < source.Length; i++)
            {
                switch (source[i])
                {
                    case '(':
                        Console.WriteLine(temp);
                        temp = "";
                        continue;

                    case ')':
                        Console.WriteLine(temp);
                        temp = "";
                        continue;

                    case '{':
                        Console.WriteLine(temp);
                        temp = "";
                        continue;

                    case '}':
                        Console.WriteLine(temp);
                        temp = "";
                        continue;
                }

                temp += source[i];
            }
            
            return source;
        }
    }
}
